count=0
while [ $count -lt 21 ]
do
	openssl genrsa -out privkey$count.pem 1024
	openssl rsa -in privkey$count.pem -pubout > pubkey$count.pem
	chmod ug+wx privkey$count.pem
	chmod ug+wx pubkey$count.pem	
	count=`expr $count + 1`
done
